package com.wnnight.wys.serviceImpl.role;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wnnight.wys.entity.role.MenuPerm;
import com.wnnight.wys.mapper.role.MenuPermMapper;
import com.wnnight.wys.service.role.MenuPermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author rzh6230
 * 2022/9/5 19:54
 */
@Service
@Transactional
public class MenuPermServiceImpl extends ServiceImpl<MenuPermMapper, MenuPerm> implements MenuPermService {

    @Autowired
    private MenuPermMapper menuPermMapper;
    @Override
    public List<MenuPerm> getByRoleId(Integer roleId) {
        return menuPermMapper.getByRoleId(roleId);
    }
}
